<html><head></head><body>
<?php
include('connection.php');
$sql= "SELECT * FROM event WHERE status = '1' "; 
$retval = mysql_query($sql,$con);
echo "<marquee scrollamount='2' direction='up'  onMouseOver='this.stop();' onMouseOut='this.start();'>";
echo "<ul>";
$today_date= date("d-m-y");
echo $today_date;

while($row = mysql_fetch_array($retval))
{
if($today_date<=$row['expire_date'])
{
echo "<li>";	
echo $row['expire_date'];
echo "<a href='eventdetail.php?event_id=".$row['event_id']."'>".$row['title']."</a><br/>";
echo "</li>";
}
}
echo "</ul>";
echo "</marquee>";
?>
</body>
</html>